import request from '@/utils/request'

// 查询批次管理列表
export function listBatchmanagement(query) {
    return request({
        url: '/batchmanagement/batchmanagement/list',
        method: 'get',
        params: query
    })
}

// 查询批次管理详细
export function getBatchmanagement(id) {
    return request({
        url: '/batchmanagement/batchmanagement/' + id,
        method: 'get'
    })
}

// 新增批次管理
export function addBatchmanagement(data) {
    return request({
        url: '/batchmanagement/batchmanagement',
        method: 'post',
        data: data
    })
}

// 修改批次管理
export function updateBatchmanagement(data) {
    return request({
        url: '/batchmanagement/batchmanagement',
        method: 'put',
        data: data
    })
}

// 删除批次管理
export function delBatchmanagement(id) {
    return request({
        url: '/batchmanagement/batchmanagement/' + id,
        method: 'delete'
    })
}
